package misc;

public enum HubLocationStatus {
	ACTIVE((short) 1), INACTIVE((short) 2);
	private HubLocationStatus(short value) {
		this.value = value;
	}

	private short value;

	public short getValue() {
		return value;
	}

	public static HubLocationStatus valueOf(short v) {

		for (HubLocationStatus h : values()) {
			if (h.getValue() == v)
				return h;
		}

		switch (v) {
		case 1:
			return ACTIVE;
		case 2:
			return INACTIVE;
		default:
			return null;
		}

	}
}
